#include <iostream>
using namespace std;
#include "Dice.h"
#include <conio.h>

void printDice(int value){
	switch (value){
	case 1: cout << "-----" << endl << "|   |" << endl << "| o |" << endl << "|   |" << endl << "-----" << endl;  break;
	case 2: cout << "-----" << endl << "|o  |" << endl << "|   |" << endl << "|  o|" << endl << "-----" << endl;  break;
	case 3: cout << "-----" << endl << "|o  |" << endl << "| o |" << endl << "|  o|" << endl << "-----" << endl;  break;
	case 4: cout << "-----" << endl << "|o o|" << endl << "|   |" << endl << "|o o|" << endl << "-----" << endl;  break;
	case 5: cout << "-----" << endl << "|o o|" << endl << "| o |" << endl << "|o o|" << endl << "-----" << endl;  break;
	case 6: cout << "-----" << endl << "|o o|" << endl << "|o o|" << endl << "|o o|" << endl << "-----" << endl;  break;
	default: cout << "invalid dice"; break;
	}
}

int main()
{
	Dice d1, d2;
	char key = 'a';
	while (key != '\r'){
		d1.throwDice();
		d2.throwDice();
		printDice(d1.readDice());
		printDice(d2.readDice());
		key = _getch();
		system("cls");
	}

	system("pause");
	return 0;
}